package com.monai.aidati.biMq;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class BiMessageProducer {
    @Autowired
    private RabbitTemplate rabbitTemplate;
    public void MessageSend(String messge){
        rabbitTemplate.convertAndSend("bi_exchange","bi_routingKey",messge);
    }
}
